/**
 * Created by xiebang
 * Description
 * User:小谢
 * Date:2021-12-06
 * Time:10:49
 */
public class TestDemo {
    public static void main1(String[] args) {
        MyArraysList myArraysList = new MyArraysList();
        myArraysList.add(0,1);
        myArraysList.add(1,2);
        myArraysList.add(2,3);
        myArraysList.add(3,4);
        myArraysList.add(4,5);
        myArraysList.display();
        myArraysList.add(2,6);
        myArraysList.display();
        System.out.println(myArraysList.isEmpty());
        System.out.println(myArraysList.contains(4));
        System.out.println(myArraysList.search(4));
        System.out.println(myArraysList.getPos(5));
        myArraysList.remove(5);
//        myArraysList.clean();
        myArraysList.display();

    }

    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.createdList();
        myLinkedList.display();
        System.out.println(myLinkedList.size());
        myLinkedList.removeAllKey(2);
        myLinkedList.display();
    }


}
